package com.example.springbootparamvalidatedemo.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author chaird
 * @create 2021-06-18 22:03
 */
@Data
public class StudentDto {

  @NotNull(message = "id不能为空")
  private Integer id;

  @NotBlank(message = "name不能为空")
  private String name;

  @NotBlank(message = "email不能为空")
  private String email;
}
